<html>
    <head>
        <meta charset="UTF-8">

        <title>导入模块</title>

        <script type="module">  
            import {Point, GeoPoint} from "./js/geometry.js";
            import {sum} from "./js/geometry.js";
            import {PI} from "./js/geometry.js";

            //使用类
            let gpt = new GeoPoint(116, 39,"EPSG:4326");
            alert(gpt.X);

            //使用函数
            let value = sum(1,2);
            alert(value);

            //使用常量
            alert(PI);
        </script>
    </head>
    <body>
        
    </body>
</html>